﻿<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>${setting.siteName} - 轮播表管理</title>
    <meta name="keywords" content="${setting.siteName}">
    <meta name="description" content="${setting.siteName}">

    <!-- BEGIN HEADER -->
    [#include "/admin/include/style.ftl"]
    <!-- END HEADER -->
    <style type="text/css">
        .btn {
            margin: 0 5px;
        }
    </style>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">

    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <form id="listForm" action="list.jhtml" method="get">
                    <div class="ibox-title">
                        <h5>轮播表管理 </h5>
                        <div class="ibox-tools">
                            <a class="btn btn-outline btn-success btn-xs" id="btn-add-loippi" href="add.jhtml"><i
                                        class="fa fa-plus"></i> 新增</a>
                            <a class="btn btn-outline btn-danger btn-xs btn-delete-loippi-group"><i
                                        class="fa fa-trash"></i> 删除</a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="form-group">
                                <input type="text" id="keyword" name="keyword"
                                       class="form-control-static col-sm-6 offset2" placeholder="请输入关键字搜索">
                                <button type="submit" class="btn btn-sm btn-primary loippi-search-button col-sm-1"> 搜索
                                </button>
                                <button type="reset" class="btn btn-sm btn-info col-sm-1">重置</button>
                            </div>
                        </div>
                        <div class="dataTables_wrapper form-inline">
                            <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
                                <thead>
                                <tr>

                                    <th><input type="checkbox" class="i-checks" name="checkAll"></th>
                                    <th>图片名称</th>
                                    <th>图片链接</th>
                                    <th>外部链接</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                [#list page.content as tCarousel]
                                    <tr>
                                        <td>
                                            <input type="checkbox" class="i-checks" name="ids" value="${tCarousel.id}">
                                        </td>
                                        <td>${(tCarousel.name)!''}</td>
                                        <td>${(tCarousel.img)!''}</td>
                                        <td>${(tCarousel.outUrl)!''}</td>
                                        <td>
                                            <a href="${base}/admin/tcarousel/view/${tCarousel.id}.jhtml"
                                               class="btn btn-xs btn-default"> ${message("admin.common.view")} </a>

                                            <a class="btn btn-info btn-xs btn-edit-loippi" data-id="${tCarousel.id}"
                                               href="edit/${tCarousel.id}.jhtml"><i
                                                        class="fa fa-paste"></i> ${message("admin.common.edit")} </a>

                                            <a class="btn btn-danger btn-xs btn-delete-loippi"
                                               data-id="${tCarousel.id}"><i
                                                        class="fa fa-trash"></i> ${message("admin.common.delete")} </a>
                                        </td>
                                    </tr>
                                [/#list]
                                </tbody>
                            </table>
                            [@pagination pageNumber = page.pageNumber totalPages = page.totalPages]
                                [#include "/admin/include/pagination.ftl"]
                            [/@pagination]
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<!-- BEGIN Script -->
[#include "/admin/include/script.ftl"]
<!-- END Script -->
<script>
    $(document).ready(function () {
        [@flash_message /]
    });
</script>
</body>

</html>
